﻿package plugin.juezhan
{
    import com.core.*;

    public class JueZhanControl extends Control
    {

        public function JueZhanControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "juezhan")
            {
                switch(param2.property)
                {
                    case "bossRefresh":
                    {
                        this.target.bossRefresh(param2.newvalue.source);
                        break;
                    }
                    case "restgrankrewards":
                    {
                        this.target.restgrankrewards();
                        break;
                    }
                    case "eliteRefresh":
                    {
                        this.target.eliteRefresh(param2.newvalue.source);
                        break;
                    }
                    case "tianguanProgress":
                    {
                        this.target.tianguanProgress(param2.newvalue);
                        break;
                    }
                    case "tgRankInit":
                    {
                        this.target.tgRankInit(param2.newvalue);
                        break;
                    }
                    case "tgRankReward":
                    {
                        this.target.tgRankReward(param2.newvalue);
                        break;
                    }
                    case "restgrewards":
                    {
                        this.target.restgrewards(param2.newvalue);
                        break;
                    }
                    default:
                    {
                        break;
                    }
                }
            }
            return;
        }// end function

    }
}
